package com.srit.forecast.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

/**
 * 编码拦截器
 * 
 * @author guan
 * 
 */
public class CodeDataInterceptor  extends HandlerInterceptorAdapter {
	/**
	 * 在Controller方法前进行拦截
	 */
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
		System.out
				.println("*********************CodeDataInterceptor.preHandle********************");
		request.setAttribute("ParamCodes", "ParamCodes");
		System.out.println("CodeDataInterceptor.preHandle()");
		return true;
	}
}
